
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php
@session_start();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/style.css" type="text/css" rel="stylesheet"/>
        <link href="css/change.css" type="text/css" rel="stylesheet"/>
        <link href="css/cart-style.css" type="text/css" rel="stylesheet"/>
        <link href="css/donhang.css" type="text/css" rel="stylesheet"/>
        <link href="css/login.css" type="text/css" rel="stylesheet"/>
        <script src="jquery-1.11.0.js" type="text/javascript"></script>
        <script type="text/javascript" charset="utf-8" src="jquery/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="jquery/jquery.validate.js"></script>
        <script type="text/javascript" charset="utf-8" src="jquery/header.js"></script>
        <script type="text/javascript" charset="utf-8" src="jquery/slide-show.js"></script>
        <link rel="stylesheet" href="jquery-ui-1.10.4/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">
        <script src="jquery-ui-1.10.4/jquery-ui-1.10.4/jquery-1.10.2.js"></script>
        
        <title></title>
        <style>
          
            </style>
    </head>
    <body>
        <div id="wrapper">
            <?php include 'template/header.php' ?>
            <div id="main">
                <div class="vieworder">
                         <?php
                    if (isset($_SESSION['cus'])) {
                        include 'Connect_db.php';
                        $id = $_SESSION['cus']['cus_id'];
                        $customer = getCustomerbyId($id);
                        
                        ?>
                    <div class="miss">
                    <span>ĐƠN HÀNG</span>
                    </div>
                    <div class="cus">
                            <h2>Thông tin khách hàng</h2>
                    </div>
                    <div class="imformation-customer">
                        <div>
                            <ul>
                                <li>Mã khách hàng:<strong><?php echo $customer['cus_id'] ?></strong></li>
                                <li>Tên khách hàng:<strong><?php echo $customer['cus_name'] ?></strong></li>
                                <li>Email:<strong><?php echo $customer['cus_email'] ?></strong></li>
                                <li>Địa chỉ:<strong><?php echo $customer['cus_address'] ?></strong></li>
                                <li>Số điện thoại:<strong><?php echo $customer['cus_phone'] ?></strong></li>
                            </ul>
                        </div>
                    </div>
                    <div class="pro">
                        <div class="cus">
                        <h2>Thông tin sản phẩm</h2>
                        </div>
                        <div class="table">
                            <table  cellspacing="0px" cellpadding="0px" border="1px">
                                <tr>
                                    <th class="title">mã sản phẩm</th>
                                    <th class="title">sản phẩm</th>
                                    <th class="title">giá sản phẩm</th>
                                    <th class="title">số lượng</th>
                                    <th class="title">tổng tiền</th>
                                </tr>
                                <?php
                                $order_id = $_REQUEST['order_id'];
                                 $pro= getvieworder($order_id);
                                    foreach ($pro as $key => $value) {
                                ?>
                                <tr>
                                    <td><?php echo $value['pro_id'] ?></td>
                                    <td><?php echo $value['pro_name']; ?></td>
                                    <td><?php echo $value['pro_price']; ?></td>
                                    <td><?php echo $value['order_qty']; ?></td>
                                    <td><?php echo $value['order_totalMoney']?></td>
                                </tr>
                                <?php
                                    
                                }
                                ?>
                            </table>
                        </div>
                    </div>

                       <?php
                                
                    }
                    ?>
                </div>
            </div>
          <?php include 'template/footer.php' ?>
        </div><!----END #wrapper--->
    </body>
</html>

